Skip to content

Conversation

@DavidHurta
Copy link
Contributor

To make the binary discoverable to the outside world.

The following step is to register the binary in the origin repository to make the origin machine aware of the CVO tests extension.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 25, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 25, 2025

@DavidHurta: This pull request references OTA-1585 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

To make the binary discoverable to the outside world.

The following step is to register the binary in the origin repository to make the origin machine aware of the CVO tests extension.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 25, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 25, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@DavidHurta
Copy link
Contributor Author

/test images

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 25, 2025
@DavidHurta
Copy link
Contributor Author

Blocked by #1235.

@DavidHurta DavidHurta marked this pull request as ready for review October 24, 2025 21:14
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 24, 2025
@DavidHurta
Copy link
Contributor Author

/test e2e-agnostic-ovn

@DavidHurta
Copy link
Contributor Author

The e2e job failed on:

  • First run:
    • : [sig-network][Feature:EgressFirewall] egressFirewall should have no impact outside its namespace [Suite:openshift/conformance/parallel]
  • Second run:
    • : [sig-storage] PersistentVolumes NFS with Single PV - PVC pairs create a PV and a pre-bound PVC: test write access [Suite:openshift/conformance/parallel] [Suite:k8s]

This PR adds a new file, which is not executed anywhere, to the CVO's container image. Not likely that the flaky failures are caused by the PR.

/override ci/prow/e2e-agnostic-ovn

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 27, 2025

@DavidHurta: Overrode contexts on behalf of DavidHurta: ci/prow/e2e-agnostic-ovn

In response to this:

The e2e job failed on:

  • First run:
  • : [sig-network][Feature:EgressFirewall] egressFirewall should have no impact outside its namespace [Suite:openshift/conformance/parallel]
  • Second run:
  • : [sig-storage] PersistentVolumes NFS with Single PV - PVC pairs create a PV and a pre-bound PVC: test write access [Suite:openshift/conformance/parallel] [Suite:k8s]

This PR adds a new file, which is not executed anywhere, to the CVO's container image. Not likely that the flaky failures are caused by the PR.

/override ci/prow/e2e-agnostic-ovn

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@DavidHurta
Copy link
Contributor Author

/verified by @DavidHurta

The changes affect only tests. The changes are not visible in the CI nor in a cluster as of the moment. I have tested the changes in combination with other relevant PRs using testwith command as mentioned in an associated PR. I believe this is sufficient.

This PR could cause some security scanning alerting to go off. However, such a change has already been done via other teams, so I presume nothing like that will happen.

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Oct 27, 2025
@openshift-ci-robot
Copy link
Contributor

@DavidHurta: This PR has been marked as verified by @DavidHurta.

In response to this:

/verified by @DavidHurta

The changes affect only tests. The changes are not visible in the CI nor in a cluster as of the moment. I have tested the changes in combination with other relevant PRs using testwith command as mentioned in an associated PR. I believe this is sufficient.

This PR could cause some security scanning alerting to go off. However, such a change has already been done via other teams, so I presume nothing like that will happen.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@DavidHurta
Copy link
Contributor Author

DavidHurta commented Oct 27, 2025

/cc @hongkailiu

As I am under the impression that you are interested in this area.

@openshift-ci openshift-ci bot requested a review from hongkailiu October 27, 2025 17:33
Copy link
Member

@hongkailiu hongkailiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: We could simplify the commands a bit.
Otherwise, LGTM.

@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Oct 30, 2025
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 30, 2025
DavidHurta and others added 2 commits October 30, 2025 13:56
To make the binary discoverable to the outside world.

The following step is to register the binary in the origin repository to
make the origin machine aware of the CVO tests extension.
Co-authored-by: Hongkai Liu <hongkailiu@users.noreply.github.com>
@DavidHurta DavidHurta force-pushed the finalize-ote-integration-add-tests-binary-to-payload branch from d6eeb4f to 1fd1001 Compare October 30, 2025 13:01
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 30, 2025
@DavidHurta DavidHurta requested a review from hongkailiu October 30, 2025 13:12
@DavidHurta
Copy link
Contributor Author

/verified bypass

The CI will either break or the compressed tests binary won't be visible, which will be discovered shortly without any impact.

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Oct 30, 2025
@openshift-ci-robot
Copy link
Contributor

@DavidHurta: The verified label has been added.

In response to this:

/verified bypass

The CI will either break or the compressed tests binary won't be visible, which will be discovered shortly without any impact.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@hongkailiu
Copy link
Member

hongkailiu commented Oct 30, 2025

This checks out the changes on Dockerfile.rhel

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1236/pull-ci-openshift-cluster-version-operator-main-images/1983882259224072192/artifacts/build-logs/cluster-version-operator-amd64.log | grep 'COPY --from=builder'
2025-10-30T13:09:41.484955381Z [2/2] STEP 3/10: COPY --from=builder /tmp/build/cluster-version-operator /tmp/build/cluster-version-operator-tests.gz /usr/bin/

Where the Dockerfile is used? 🤔

Petr confirmed that it is not used in CI.

@hongkailiu
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 30, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: DavidHurta, hongkailiu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [DavidHurta,hongkailiu]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

hongkailiu added a commit to hongkailiu/cluster-version-operator that referenced this pull request Oct 30, 2025
Follow up openshift#1236 (comment)

The benifit is we do not need to maintain them such
as openshift#1236

* The `Dockerfile` was not used in [CI configuration](https://github.com/openshift/release/tree/master/ci-operator/config/openshift/cluster-version-operator).
  and not in [ocp-build](https://github.com/openshift-eng/ocp-build-data/blob/ee5e00d600bd2d15cf36d9c395c0c333106f3489/images/cluster-version-operator.yml#L3) either. Both of them
  use `Dockerfile.rhel`. Petr also confirms](openshift@10deb6f)
  this finding and suggests that tit is there is only
  for external contributors. However, it stops working
  anyway.

* By replacing the private images with relatively
  well-known public ones, the build can be recovered.
  So the bar is not relatively for the externals.

```console
$ diff --git a/Dockerfile.rhel b/Dockerfile.rhel
  index fede93e..cf549c0a 100644
  --- a/Dockerfile.rhel
  +++ b/Dockerfile.rhel
  @@ -1,11 +1,10 @@
  -FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.21 AS builder
  -WORKDIR /go/src/github.com/openshift/cluster-version-operator
  +FROM docker.io/golang:1.24 AS builder
   COPY . .
   RUN hack/build-go.sh; \
       mkdir -p /tmp/build; \
       cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator

  -FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
  +FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
   COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/
   COPY install /manifests
   COPY vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/
```

* `Dockerfile.rhel7` was kept only for [backwards-compatibility](openshift@32204c0).
  It has been long enough for the consumers to adapt.
hongkailiu added a commit to hongkailiu/cluster-version-operator that referenced this pull request Oct 30, 2025
Follow up openshift#1236 (comment)

The benifit is we do not need to maintain them such
as openshift#1236

* The `Dockerfile` was not used in [CI configuration](https://github.com/openshift/release/tree/master/ci-operator/config/openshift/cluster-version-operator).
  and not in [ocp-build](https://github.com/openshift-eng/ocp-build-data/blob/ee5e00d600bd2d15cf36d9c395c0c333106f3489/images/cluster-version-operator.yml#L3) either. Both of them
  use `Dockerfile.rhel`. Petr also [confirms](openshift@10deb6f)
  this finding and suggests that tit is there is only
  for external contributors. However, it stops working
  anyway.

* By replacing the private images with relatively
  well-known public ones, the build can be recovered.
  So the bar is not relatively for the externals.

```console
$ diff --git a/Dockerfile.rhel b/Dockerfile.rhel
  index fede93e..cf549c0a 100644
  --- a/Dockerfile.rhel
  +++ b/Dockerfile.rhel
  @@ -1,11 +1,10 @@
  -FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.21 AS builder
  -WORKDIR /go/src/github.com/openshift/cluster-version-operator
  +FROM docker.io/golang:1.24 AS builder
   COPY . .
   RUN hack/build-go.sh; \
       mkdir -p /tmp/build; \
       cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator

  -FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
  +FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
   COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/
   COPY install /manifests
   COPY vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/
```

* `Dockerfile.rhel7` was kept only for [backwards-compatibility](openshift@32204c0).
  It has been long enough for the consumers to adapt.
hongkailiu added a commit to hongkailiu/cluster-version-operator that referenced this pull request Oct 30, 2025
Follow up openshift#1236 (comment)

The benifit is we do not need to maintain them such
as openshift#1236

* The `Dockerfile` was not used in [CI configuration](https://github.com/openshift/release/tree/master/ci-operator/config/openshift/cluster-version-operator).
  and not in [ocp-build](https://github.com/openshift-eng/ocp-build-data/blob/ee5e00d600bd2d15cf36d9c395c0c333106f3489/images/cluster-version-operator.yml#L3) either. Both of them
  use `Dockerfile.rhel`. Petr also [confirms](openshift@10deb6f)
  this finding and suggests that it is there is only
  for external contributors. However, it stops working
  anyway.

* By replacing the private images with relatively
  well-known public ones, the build can be recovered.
  So the bar is relatively low for the externals.

```console
$ diff --git a/Dockerfile.rhel b/Dockerfile.rhel
  index fede93e..cf549c0a 100644
  --- a/Dockerfile.rhel
  +++ b/Dockerfile.rhel
  @@ -1,11 +1,10 @@
  -FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.21 AS builder
  -WORKDIR /go/src/github.com/openshift/cluster-version-operator
  +FROM docker.io/golang:1.24 AS builder
   COPY . .
   RUN hack/build-go.sh; \
       mkdir -p /tmp/build; \
       cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator

  -FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
  +FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
   COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/
   COPY install /manifests
   COPY vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/
```

* `Dockerfile.rhel7` was kept only for [backwards-compatibility](openshift@32204c0).
  It has been long enough for the consumers to adapt.
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 667bc63 and 2 for PR HEAD 1fd1001 in total

@DavidHurta
Copy link
Contributor Author

/retest-required

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 30, 2025

@DavidHurta: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-scos-e2e-aws-ovn 1fd1001 link false /test okd-scos-e2e-aws-ovn

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@DavidHurta
Copy link
Contributor Author

sig-network failures are being addressed in https://issues.redhat.com/browse/OCPBUGS-63738

@DavidHurta
Copy link
Contributor Author

/retest-required

@openshift-merge-bot openshift-merge-bot bot merged commit 420e6d0 into openshift:main Nov 1, 2025
14 of 15 checks passed
hongkailiu added a commit to hongkailiu/cluster-version-operator that referenced this pull request Nov 3, 2025
Follow up openshift#1236 (comment)

The benifit is we do not need to maintain them such
as openshift#1236

* The `Dockerfile` was not used in [CI configuration](https://github.com/openshift/release/tree/master/ci-operator/config/openshift/cluster-version-operator).
  and not in [ocp-build](https://github.com/openshift-eng/ocp-build-data/blob/ee5e00d600bd2d15cf36d9c395c0c333106f3489/images/cluster-version-operator.yml#L3) either. Both of them
  use `Dockerfile.rhel`. Petr also [confirms](openshift@10deb6f)
  this finding and suggests that it is there is only
  for external contributors. However, it stops working
  anyway.

* By replacing the private images with relatively
  well-known public ones, the build can be recovered.
  So the bar is relatively low for the externals.

```console
$ diff --git a/Dockerfile.rhel b/Dockerfile.rhel
  index fede93e..cf549c0a 100644
  --- a/Dockerfile.rhel
  +++ b/Dockerfile.rhel
  @@ -1,11 +1,10 @@
  -FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.21 AS builder
  -WORKDIR /go/src/github.com/openshift/cluster-version-operator
  +FROM docker.io/golang:1.24 AS builder
   COPY . .
   RUN hack/build-go.sh; \
       mkdir -p /tmp/build; \
       cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator

  -FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
  +FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
   COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/
   COPY install /manifests
   COPY vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/
```

* `Dockerfile.rhel7` was kept only for [backwards-compatibility](openshift@32204c0).
  It has been long enough for the consumers to adapt.
hongkailiu added a commit to hongkailiu/cluster-version-operator that referenced this pull request Nov 3, 2025
Follow up openshift#1236 (comment)

The benifit is we do not need to maintain them such
as openshift#1236

* The `Dockerfile` was not used in [CI configuration](https://github.com/openshift/release/tree/master/ci-operator/config/openshift/cluster-version-operator).
  and not in [ocp-build](https://github.com/openshift-eng/ocp-build-data/blob/ee5e00d600bd2d15cf36d9c395c0c333106f3489/images/cluster-version-operator.yml#L3) either. Both of them
  use `Dockerfile.rhel`. Petr also [confirms](openshift@10deb6f)
  this finding and suggests that it is there is only
  for external contributors. However, it stops working
  anyway.

* By replacing the private images in `Dockerfile.rhel`
  with relatively well-known public ones, the build
  can be recovered. So the bar is relatively low for
  the externals.

```console
$ diff --git a/Dockerfile.rhel b/Dockerfile.rhel
  index fede93e..cf549c0a 100644
  --- a/Dockerfile.rhel
  +++ b/Dockerfile.rhel
  @@ -1,11 +1,10 @@
  -FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.21 AS builder
  -WORKDIR /go/src/github.com/openshift/cluster-version-operator
  +FROM docker.io/golang:1.24 AS builder
   COPY . .
   RUN hack/build-go.sh; \
       mkdir -p /tmp/build; \
       cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator

  -FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
  +FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
   COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/
   COPY install /manifests
   COPY vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/
```

* `Dockerfile.rhel7` was kept only for [backwards-compatibility](openshift@32204c0).
  It has been long enough for the consumers to adapt.
hongkailiu added a commit to hongkailiu/cluster-version-operator that referenced this pull request Nov 3, 2025
Follow up openshift#1236 (comment)

The benifit is we do not need to maintain them such
as openshift#1236

* The `Dockerfile` was not used in [CI configuration](https://github.com/openshift/release/tree/master/ci-operator/config/openshift/cluster-version-operator).
  and not in [ocp-build](https://github.com/openshift-eng/ocp-build-data/blob/ee5e00d600bd2d15cf36d9c395c0c333106f3489/images/cluster-version-operator.yml#L3) either. Both of them
  use `Dockerfile.rhel`. Petr also [confirms](openshift@10deb6f)
  this finding and suggests that it is there is only
  for external contributors. However, it stops working
  anyway.

* By replacing the private images in `Dockerfile.rhel`
  with relatively well-known public ones, the build
  can be recovered. So the bar is relatively low for
  the externals.

```console
$ diff --git a/Dockerfile.rhel b/Dockerfile.rhel
  index fede93e..cf549c0a 100644
  --- a/Dockerfile.rhel
  +++ b/Dockerfile.rhel
  @@ -1,11 +1,10 @@
  -FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.21 AS builder
  -WORKDIR /go/src/github.com/openshift/cluster-version-operator
  +FROM docker.io/golang:1.24 AS builder
   COPY . .
   RUN hack/build-go.sh; \
       mkdir -p /tmp/build; \
       cp _output/linux/$(go env GOARCH)/cluster-version-operator /tmp/build/cluster-version-operator

  -FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
  +FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
   COPY --from=builder /tmp/build/cluster-version-operator /usr/bin/
   COPY install /manifests
   COPY vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/
```

* `Dockerfile.rhel7` was kept only for [backwards-compatibility](openshift@32204c0).
  It has been long enough (over 5 years already) for
  the consumers to adapt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants